package com.arron.builder.improve;

public class Client {
    public static void main(String[] args) {
        CommonBuilder commonBuilder =new CommonBuilder();
        HouseDirector houseDirector =new HouseDirector(commonBuilder);
        houseDirector.constructBuilder();
        System.out.println("-------------------------------------------");
        houseDirector.setBuilder(new HighBuilder());
        houseDirector.constructBuilder();
        System.out.println("-------------------------------------------");
        houseDirector.setBuilder(new LargeBuilder());
        houseDirector.constructBuilder();
    }
}
